home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / librw / RWvios.z / RWvios
Encoding:
Text File  |  1998-10-30  |  3.6 KB  |  133 lines

  1.  
  2.  
  3.  
  4. RRRRWWWWvvvviiiioooossss((((3333CCCC++++++++))))                                                      RRRRWWWWvvvviiiioooossss((((3333CCCC++++++++))))
  5.  
  6.  
  7.  
  8. NNNNaaaammmmeeee
  9.      RWvios - Rogue Wave library class
  10.  
  11. SSSSyyyynnnnooooppppssssiiiissss
  12.               #include <vstream.h>
  13.  
  14.  
  15.  
  16.  
  17.           ((((aaaabbbbssssttttrrrraaaacccctttt bbbbaaaasssseeee ccccllllaaaassssssss))))
  18.  
  19.  
  20.  
  21.  
  22. DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn
  23.      RRRRWWWWvvvviiiioooossss is an abstract base class.  It defines an interface similar to the
  24.      C++ streams class iiiioooossss.  However, unlike iiiioooossss, it offers the advantage of
  25.      not necessarily being associated with a ssssttttrrrreeeeaaaammmmbbbbuuuuffff. This is useful for
  26.      classes that cannot use a ssssttttrrrreeeeaaaammmmbbbbuuuuffff in their implementation.  An example
  27.      of such a class is RRRRWWWWXXXXDDDDRRRRiiiissssttttrrrreeeeaaaammmm, where the XDR model does not permit
  28.      ssssttttrrrreeeeaaaammmmbbbbuuuuffff functionality.  Specializing classes that do use ssssttttrrrreeeeaaaammmmbbbbuuuuffffs in
  29.      their implementation (eeee....gggg...., RRRRWWWWppppiiiissssttttrrrreeeeaaaammmm) can usually just return the
  30.      corresponding iiiioooossss function.
  31.  
  32. PPPPeeeerrrrssssiiiisssstttteeeennnncccceeee
  33.      None
  34.  
  35. PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrr FFFFuuuunnnnccccttttiiiioooonnnnssss
  36.               virtual int
  37.           eeeeooooffff() = 0;
  38.  
  39.  
  40.      Returns a nonzero integer if an EEEEOOOOFFFF has been encountered.
  41.  
  42.               virtual int
  43.           ffffaaaaiiiillll() = 0;
  44.  
  45.  
  46.      Returns a nonzero integer if the fail or bad bit has been set.  Normally,
  47.      this indicates that some storage or retrieval has failed but that the
  48.      stream is still in a usable state.
  49.  
  50.               virtual int
  51.           bbbbaaaadddd() = 0;
  52.  
  53.  
  54.      Returns a nonzero integer if the bad bit has been set.  Normally this
  55.      indicates that a severe error has occurred from which recovery is
  56.      probably impossible.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. RRRRWWWWvvvviiiioooossss((((3333CCCC++++++++))))                                                      RRRRWWWWvvvviiiioooossss((((3333CCCC++++++++))))
  71.  
  72.  
  73.  
  74.               virtual int
  75.           ggggoooooooodddd() = 0;
  76.  
  77.  
  78.      Returns a nonzero integer if no error bits have been set.
  79.  
  80.               virtual int
  81.           rrrrddddssssttttaaaatttteeee() = 0;
  82.  
  83.  
  84.      Returns the current error state.
  85.  
  86.               virtual void
  87.           cccclllleeeeaaaarrrr(int v=0) = 0;
  88.  
  89.  
  90.      Sets the current error state to vvvv.  If vvvv is zero, then this clears the
  91.      error state.
  92.  
  93.               ooooppppeeeerrrraaaattttoooorrrr vvvvooooiiiidddd****();
  94.  
  95.  
  96.      If ffffaaaaiiiillll(((()))) then return 0000 else return sssseeeellllffff.
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.